package cn.jetpiece.cloud.joss.api.object.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 创建服务提供商记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class CreateProviderParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务商名称
     */
    @NotBlank(message = "服务商名称不能为空")
    @ApiModelProperty(value = "服务商名称", required = true)
    private String providerName;

    /**
     * 服务商类型,1:OSS,2:OBS,3:COS,4:MINIO
     */
    @NotNull(message = "服务商类型不能为空")
    @ApiModelProperty(value = "服务商类型,1:OSS,2:OBS,3:COS,4:MINIO", required = true)
    private Integer providerType;

    /**
     * 公钥
     */
    @NotBlank(message = "公钥不能为空")
    @ApiModelProperty(value = "公钥", required = true)
    private String accessKey;

    /**
     * 密钥
     */
    @NotBlank(message = "密钥不能为空")
    @ApiModelProperty(value = "密钥", required = true)
    private String secretKey;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;
}
